$.get("/pages/back/record/destination",function (data) {
    var dom = document.getElementById("container");
    var myChart = echarts.init(dom);
    var app = {};

    var option;

    option = {
        title: {
            text: '运输目的地',
            // subtext: '纯属虚构',
            left: 'center'
        },
        tooltip: {
            trigger: 'item'
        },
        legend: {
            orient: 'vertical',
            left: data,
            textStyle: { //图例文字的样式
                color: '',
                fontSize: 20
            }
        },
        series: [
            {
                // name: '访问来源',
                type: 'pie',
                radius: '50%',
                data: data.splice(0,5),
                emphasis: {
                    itemStyle: {
                        shadowBlur: 10,
                        shadowOffsetX: 0,
                        shadowColor: 'rgba(0, 0, 0, 0.5)'
                    },
                }
            }
        ]
    };

    if (option && typeof option === 'object') {
        myChart.setOption(option);
    }
})